﻿using System.Net;

namespace ETModel
{
    /// <summary>
    /// actor消息发送器,根据instanceId解析出服务器地址,发过去让对方的InnerMessageDispatcher转发给这个instanceId挂载的邮筒
    /// (知道对方的instanceId，直接使用这个类发actor消息)
    /// </summary>
    public struct ActorMessageSender
	{
		// actor的地址
		public IPEndPoint Address { get; }

		public long ActorId { get; }

		public ActorMessageSender(long actorId, IPEndPoint address)
		{
			this.ActorId = actorId;
			this.Address = address;
		}
	}
}